﻿<%@ Control Language="C#" ClassName="ChargesByState" Inherits="Dimok.Web.UI.TableControl" %>
<script runat="server">
</script>
<asp:UpdatePanel ID="upChargesByState" UpdateMode="Always" runat="server">
	<ContentTemplate>
	<UI:GridViewMB ID="grv" runat="server" AutoGenerateColumns="false"
		AllowSorting="true" ShowFooter="true" ShowDelete="true"
		DataKeyNames="ID" DataSourceID="ds">
		<Columns>
		<asp:TemplateField HeaderText="ID" SortExpression="ID">
		<ItemTemplate><%#Eval("ID") %></ItemTemplate>
		<EditItemTemplate><asp:TextBox id="txtID" Text='<%#Bind("ID") %>' runat="server" /></EditItemTemplate>
		<FooterTemplate><asp:TextBox ID="ID" runat="server" /></FooterTemplate>
		</asp:TemplateField>
		<asp:TemplateField HeaderText="LateDays" SortExpression="LateDays">
		<ItemTemplate><%#Eval("LateDays")%></ItemTemplate>
		<EditItemTemplate><asp:TextBox id="txtLateDays" Text='<%#Bind("LateDays") %>' runat="server" /></EditItemTemplate>
		<FooterTemplate><asp:TextBox ID="LateDays" runat="server" /></FooterTemplate>
		</asp:TemplateField>
		<asp:TemplateField HeaderText="LateChargePerc" SortExpression="LateChargePerc">
		<ItemTemplate><%#Eval("LateChargePerc")%></ItemTemplate>
		<EditItemTemplate><asp:TextBox id="txtLateChargePerc" Text='<%#Bind("LateChargePerc") %>' runat="server" /></EditItemTemplate>
		<FooterTemplate><asp:TextBox ID="LateChargePerc" runat="server" /></FooterTemplate>
		</asp:TemplateField>
		<asp:TemplateField HeaderText="LateChargeMax" SortExpression="LateChargeMax">
		<ItemTemplate><%#Eval("LateChargeMax")%></ItemTemplate>
		<EditItemTemplate><asp:TextBox id="txtLateChargeMax" Text='<%#Bind("LateChargeMax") %>' runat="server" /></EditItemTemplate>
		<FooterTemplate><asp:TextBox ID="LateChargeMax" runat="server" /></FooterTemplate>
		</asp:TemplateField>
		</Columns>
</UI:GridViewMB>
</ContentTemplate>
</asp:UpdatePanel>

<DS:TableDataSource ID="ds" SelectViewName="v_StateLateCharge" InsertViewName="v_StateLateCharge" runat="server"/>